package cn.wange;

import javax.swing.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class OutDate {
    public static void main(String[] args) throws ParseException {
        Date d = new Date();
       SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss a D EEEEE");
        System.out.println(simpleDateFormat.format(d));

        System.out.printf("%tF %<tT %<tA%n",System.currentTimeMillis());
        System.out.printf("%tF %<tT %<tA%n",new Date());
        System.out.printf("%tF %<tT %<tA%n",new Date().getTime());



    }
}
